package top.buluoluo.productservice.entity;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品SPU表(ProductSpu)表实体类
 *
 * @author makejava
 * @since 2025-10-06 20:07:15
 */
@Data
@TableName(value = "product_spu", autoResultMap = true)
public class ProductSpu  {
//SPU ID
@TableId(type = IdType.AUTO)
    private Long id;
//SPU编码，唯一
    private String spuCode;
//商户ID
    private Long merchantId;
//商品名称
    private String name;
//商品副标题
    private String subTitle;
//分类ID
@TableField(typeHandler = JacksonTypeHandler.class)
    private List<Integer> categoryIds;
//品牌ID
    private Long brandId;
//主图URL
    private String mainImageUrl;
//商品图册（JSON数组）
@TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> imageUrls;
//基础价格
    private BigDecimal basePrice;
//状态：0-待上架，1-销售中，2-已下架
    private Integer status;
//上架时间
    private Date shelfTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}

